package com.tyg.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tyg.entity.RoleInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tyg.entity.UserInfo;

import java.util.List;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author zhangjingnan
 * @since 2022-10-22
 */
public interface RoleInfoService extends IService<RoleInfo> {

    public boolean isRoleByName(String roleName);

    public boolean addRole(RoleInfo role);

    public boolean updateRole(RoleInfo role);

    public List<RoleInfo> selectList(QueryWrapper<com.tyg.entity.RoleInfo> queryWrapper);

    public RoleInfo selectById(int roleId);

    public boolean updateById(RoleInfo role);
}
